<form method = "post" action= "moderation.php?page=allUsers" class ="pullLeft">
	<span><label for = "sort">Trier Par : </label></span>
	<select name = "sort">
		<option value = "hireDate" <?php if($sortAU == "date"){echo('selected');} ?> >Date d'inscription</option>
		<option value = "id" <?php if($sortAU == "id"){echo('selected');} ?> >Identifiant</option>
		<option value = "roleID" <?php if($sortAU == "roleID"){echo('selected');} ?> >Grades</option>
		<option value = "statusID" <?php if($sortAU == "statusID"){echo('selected');} ?> >Statut</option>
	</select>
	<select name = "order">
		<option value = "ASC" <?php if($orderAU == "ASC"){echo('selected');} ?> >Croissant</option>
		<option value = "DESC"<?php if($orderAU == "DESC"){echo('selected');} ?> >Décroissant</option>
	</select>
	<button type = "submit" name ="allUsersSortPost" >Ok</button>
</form>
<?php
if (isset($res_users)) {
    while ($row_user = mysqli_fetch_array($res_users)) { ?>
<div class="list-article clearfix <?= colorStatus($row_user['statusID']) ?>">
<?php if(isset($row_user['link']) && $row_user['imgStatus'] != 3) { ?>
	<img src="<?= imgLink($row_user['link']) ?>" alt="avatar"/>
<?php } else { ?>
	<img src="<?= imgLink('img/avatar/default.png') ?>" alt="avatar" />
<?php }?>
    <div>
        <div class="clearfix">
            <h2 class="pull-left"><a href="<?= WEBROOT ?>user/user.php?id=<?php echo $row_user['id']; ?>" ><?php if(isset($row_user['pseudo'])) { echo $row_user['pseudo']; } ?></a></h2>

        </div>
    </div>
</div>

<?php }
 } ?>